"To get a penalty" means to receive a punishment or consequence for breaking a rule or doing something wrong.